package msg

var MsgCreators = map[uint32]func() Message{
    1100: func() Message {
        return &GW_RegisterGate{}
    },
    1101: func() Message {
        return &GS_RegisterGate_R{}
    },
    1102: func() Message {
        return &GW_UserOnline{}
    },
    1103: func() Message {
        return &GW_LogoutPlayer{}
    },
    1104: func() Message {
        return &GS_Kick{}
    },
    5000: func() Message {
        return &GS_LoginError{}
    },
    5001: func() Message {
        return &GS_UserInfo{}
    },
    5002: func() Message {
        return &C_TimeSync{}
    },
    5003: func() Message {
        return &GS_TimeSync_R{}
    },
    5100: func() Message {
        return &GS_ChatNewText{}
    },
    5101: func() Message {
        return &GS_ChatPlayerEnter{}
    },
    5102: func() Message {
        return &GS_ChatPlayerLeave{}
    },
    5200: func() Message {
        return &C_ChatGetRoomList{}
    },
    5201: func() Message {
        return &GS_ChatGetRoomList_R{}
    },
    5202: func() Message {
        return &C_ChatEnterRoom{}
    },
    5203: func() Message {
        return &GS_ChatEnterRoom_R{}
    },
    5204: func() Message {
        return &C_ChatLeaveRoom{}
    },
    5205: func() Message {
        return &GS_ChatLeaveRoom_R{}
    },
    5206: func() Message {
        return &C_ChatCreateRoom{}
    },
    5207: func() Message {
        return &GS_ChatCreateRoom_R{}
    },
    5208: func() Message {
        return &C_ChatSendText{}
    },
    5209: func() Message {
        return &GS_ChatSendText_R{}
    },
}

func (self *GW_RegisterGate) MsgId() uint32 {
    return 1100
}

func (self *GS_RegisterGate_R) MsgId() uint32 {
    return 1101
}

func (self *GW_UserOnline) MsgId() uint32 {
    return 1102
}

func (self *GW_LogoutPlayer) MsgId() uint32 {
    return 1103
}

func (self *GS_Kick) MsgId() uint32 {
    return 1104
}

func (self *GS_LoginError) MsgId() uint32 {
    return 5000
}

func (self *GS_UserInfo) MsgId() uint32 {
    return 5001
}

func (self *C_TimeSync) MsgId() uint32 {
    return 5002
}

func (self *GS_TimeSync_R) MsgId() uint32 {
    return 5003
}

func (self *GS_ChatNewText) MsgId() uint32 {
    return 5100
}

func (self *GS_ChatPlayerEnter) MsgId() uint32 {
    return 5101
}

func (self *GS_ChatPlayerLeave) MsgId() uint32 {
    return 5102
}

func (self *C_ChatGetRoomList) MsgId() uint32 {
    return 5200
}

func (self *GS_ChatGetRoomList_R) MsgId() uint32 {
    return 5201
}

func (self *C_ChatEnterRoom) MsgId() uint32 {
    return 5202
}

func (self *GS_ChatEnterRoom_R) MsgId() uint32 {
    return 5203
}

func (self *C_ChatLeaveRoom) MsgId() uint32 {
    return 5204
}

func (self *GS_ChatLeaveRoom_R) MsgId() uint32 {
    return 5205
}

func (self *C_ChatCreateRoom) MsgId() uint32 {
    return 5206
}

func (self *GS_ChatCreateRoom_R) MsgId() uint32 {
    return 5207
}

func (self *C_ChatSendText) MsgId() uint32 {
    return 5208
}

func (self *GS_ChatSendText_R) MsgId() uint32 {
    return 5209
}
